package com.xcdh.trading.controller;

import com.xcdh.commons.controller.BaseController;
import com.xcdh.domain.vo.R;
import com.xcdh.trading.entity.HotMoneyInfo;
import com.xcdh.trading.service.HotMoneyInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("hot/money/info")
@RestController()
public class HotMoneyInfoController extends BaseController<HotMoneyInfo, HotMoneyInfoService> {
    @Autowired
    private HotMoneyInfoService hotMoneyInfoService ;

    @PostMapping("/syncHotMoneyInfo")
    private R syncHotMoneyInfo(){
        hotMoneyInfoService.syncHotMoneyInfo();
        return R.ok() ;
    }
}
